package com.kqb.order.dto;

import com.kqb.api.product.dto.OrderItemDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 杉果树皮
 * @date 2025/4/12 17:10
 * @description:
 */
@Data
@ApiModel("订单dto")
public class OrderDTO {
    @ApiModelProperty("购物车物品参数")
    private OrderItemDTO orderItemDto;

    @NotNull(message = "配送类型不能为空")
    @ApiModelProperty("配送类型3：无需快递")
    private Integer dvyType;

    @ApiModelProperty("地址ID，0为默认地址")
    @NotNull(message = "地址不能为空")
    private Long addrId;

    @NotNull(message = "是否购物车购买不能为空 1 直接购买 2 购物车购买")
    @ApiModelProperty(value = "是否购物车购买", required = true)
    private byte isCart;
}
